package com.gupaoedu.vip.factory.homework.simplefactory;

import com.gupaoedu.vip.factory.homework.BMWCar;
import com.gupaoedu.vip.factory.homework.Car;

/**
 * @Auther: tcm
 * @Date: 2020/1/14 14:31
 * @Description:
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {
        CarFactory carFactory = new CarFactory();
        Car car = carFactory.createCar("奥迪");
        car.introduce();
        car = carFactory.createCar("奔驰");
        car.introduce();
        car = carFactory.createCar(BMWCar.class);
        car.introduce();
    }

}
